package org.springframework.core.task;

import java.io.Serializable;

import org.springframework.util.Assert;

@SuppressWarnings("serial")
public class SyncTaskExecutor implements TaskExecutor, Serializable {

	@Override
	public void execute(Runnable task) {
		Assert.notNull(task, "Runnable must not be null");
		task.run();
	}
}
